#############################################################
###                    Glare3D Playpen                    ###
#############################################################

if (ANDROID)
	return()
endif ()

set (HEADER_FILES
)

set (SOURCE_FILES
    src/Dev.Playpen.cpp
)

set (INCLUDE_DIRS
	${CFG_FILE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/include
    ${CMAKE_SOURCE_DIR}/Libraries/glare.math/include
    ${CMAKE_SOURCE_DIR}/Libraries/glare.core/include
    ${CMAKE_SOURCE_DIR}/Libraries/glare.d3d11/include
    ${CMAKE_SOURCE_DIR}/Libraries/glare.gles2/include
    ${DEPENDENCY_POWER_VR_INCLUDE_DIR}
	${DEPENDENCY_DIRECTX_INCLUDE_DIR}
)

set (LINK_DIRS
    ${DEPENDENCY_POWER_VR_LIB_DIR}
	${DEPENDENCY_DIRECTX_LIB_DIR}
)

set (LIBRARIES
    glare.core
    glare.d3d11
    glare.gles2
)

include_directories(${INCLUDE_DIRS})

link_directories(${LINK_DIRS})

add_executable(Dev.Playpen WIN32 ${HEADER_FILES} ${SOURCE_FILES})
set_property(TARGET Dev.Playpen PROPERTY FOLDER ${PROJECT_APPLICATIONS_FOLDER})

target_link_libraries(Dev.Playpen ${LIBRARIES})

if (WIN32)
	copy_post_build (Dev.Playpen "${DEPENDENCY_POWER_VR_LIB_DIR}/libEGL.dll")
	copy_post_build (Dev.Playpen "${DEPENDENCY_POWER_VR_LIB_DIR}/libGLESv2.dll")
endif()
